using B.S.Medical.ErrorCode;
using MediatR;
using System;

namespace B.S.Medical.Api.Write.Application.Command.Pay
{
    /// <summary>
    /// 退款命令
    /// </summary>
    public class RefundPaymentCommand : IRequest<ApiResult<bool>>
    {
        /// <summary>
        /// 业务订单号
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// 退款金额（不传则默认全额退款）
        /// </summary>
        public decimal? RefundAmount { get; set; }

        /// <summary>
        /// 退款原因
        /// </summary>
        public string RefundReason { get; set; }

        /// <summary>
        /// 退款交易号（可选）
        /// </summary>
        public string? RefundTradeNo { get; set; }
    }
} 